package cn.fql.basic.mapper;

import cn.fql.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T>{

    List<T> loadAll();
    T loadById(Long id);

    void save(T t);
    void update(T t);
    void del(Long id);

    Integer queryCount(BaseQuery baseQuery);

    List<T> queryData(BaseQuery baseQuery);
    void patchDel(Long[] ids);
}
